﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ReturnToFactoryListConfirmQuotation.aspx.cs" Inherits="WXYW.ReturnToFactoryListConfirmQuotation" %>

<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    返厂维修服务-报价确认
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="returnToFactoryFormsGridView" runat="server" AutoGenerateColumns="false"
        Width="100%" CssClass="tableList" BorderWidth="1" BorderColor="#888888" AllowPaging="true" 
        PageSize="20" AllowSorting="True" OnPageIndexChanging="returnToFactoryFormsGridView_PageIndexChanging"
        OnRowDataBound="returnToFactoryFormsGridView_RowDataBound" OnDataBound="returnToFactoryFormsGridView_DataBound"
        OnSorting="returnToFactoryFormsGridView_Sorting" OnMustAddARow="returnToFactoryFormsGridView_MustAddARow">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="工厂RMA#" DataField="Code" SortExpression="Code" />
            <asp:TemplateField HeaderText="RMA单号" SortExpression="ApplicationProduct.ApplicationForm.ApplicationCode">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ApplicationForm.ApplicationCode") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品型号" SortExpression="ApplicationProduct.ProductType.ProductTypeName">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductType.ProductTypeName") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品序号" SortExpression="ApplicationProduct.ProductSerialNumber">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductSerialNumber")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="故障现象" SortExpression="ApplicationProduct.ProductProblemDescription">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductProblemDescription") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="供货商代码" SortExpression="ProvideCode">
                <ItemTemplate>
                    <%#Eval("ProvideCode")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="返厂申请日期" SortExpression="ApplicationProduct.ApplicationForm.ApplicationDateTime">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplicationProduct.ApplicationForm.ApplicationDateTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="工厂报价日期" SortExpression="ProviderQuatationDate">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ProviderQuatationDate")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="状态" DataField="Status" SortExpression="Status" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docedit.gif" />
                    <asp:LinkButton ID="rtfLinkButton" runat="server" OnClick="rtfLinkButton_Click" CommandArgument='<%#Eval("ID") %>'>修改</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= returnToFactoryFormsGridView.Rows.Count%></span>条,
            <span style="color: Red">20</span>条/页 当前 <span style="color: Red">
                <%= returnToFactoryFormsGridView.PageIndex + 1 %>/<%= returnToFactoryFormsGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </WXYWControl:CustomGridView>
</asp:Content>
